package com.ihcy.base.service;

import com.ihcy.base.enums.PositioneEnum;
import com.ihcy.base.model.entity.User;
import com.ihcy.base.model.vo.request.RegisterUserRequest;
import com.ihcy.base.model.vo.request.UserQueryRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IUserService {
    User registerUser(User user);

    Boolean deleteUser(Long id);

    List<User> findAll();

    Page<User> getPage(UserQueryRequest request, Pageable pageable);

    void testException();

    void addBatchUser(List<RegisterUserRequest> list);

    List<User> getUserByPosition(PositioneEnum position);
}
